Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to copy answer text to clipboard #297

Conversation

cvoorhees15
Copy link
Contributor

@cvoorhees15 cvoorhees15 commented Mar 10, 2024

No one really asked for this but this is something I added to my local copy of the tool for convenience so figured I'd share.

  • Add new menu option in the ui which copies the text from the currently displayed answer to the users clipboard.

  • Feature uses the pyperclip library.

  • Feature is currently bound to the x key. (not sure if there is a better key as c is used for opening the comments)

I use the tool on WSL 2 running Ubuntu 22.04 (Windows 10 PC) which is where these changes were tested

- Add x as a menu option which uses `pyperclip` library to copy the stack overflow answer currently being displayed to the users clipboard.
@gautamkrishnar gautamkrishnar linked an issue Mar 12, 2024 that may be closed by this pull request
@gautamkrishnar gautamkrishnar merged commit 2b91c72 into gautamkrishnar:master Mar 13, 2024
5 checks passed
@gautamkrishnar
Copy link
Owner

@cvoorhees15 thanks a lot for contributing.

@all-contributors please add @cvoorhees15 for code

Copy link
Contributor

@gautamkrishnar

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @cvoorhees15! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy Answer Text to Clipboard
2 participants